/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.manager.impl;

import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xy.biz.xd.domain.bo.DocumentFlowHandleUserBO;
import com.xy.biz.xd.domain.query.DocumentFlowHandleUserQuery;
import com.xy.biz.xd.domain.converter.DocumentFlowHandleUserConverter;
import com.xy.biz.xd.manager.DocumentFlowHandleUserManager;
import com.xy.biz.xd.dao.DocumentFlowHandleUserDao;

/**
 *
 *
 * @author zgy
 * @date 2022-5-24
 */
@Service
public class DocumentFlowHandleUserManagerImpl implements DocumentFlowHandleUserManager {

	@Autowired
	private DocumentFlowHandleUserDao documentFlowHandleUserDao;

	@Override
	public int saveDocumentFlowHandleUser(DocumentFlowHandleUserBO documentFlowHandleUserBO) {
		return documentFlowHandleUserDao.saveDocumentFlowHandleUser(DocumentFlowHandleUserConverter.toPO(documentFlowHandleUserBO));
	}

	@Override
	public int saveAllDocumentFlowHandleUser(Collection<DocumentFlowHandleUserBO> collection) {
		return documentFlowHandleUserDao.saveAllDocumentFlowHandleUser(DocumentFlowHandleUserConverter.toPO(collection));
	}

	@Override
	public int updateDocumentFlowHandleUser(DocumentFlowHandleUserBO documentFlowHandleUserBO) {
		return documentFlowHandleUserDao.updateDocumentFlowHandleUser(DocumentFlowHandleUserConverter.toPO(documentFlowHandleUserBO));
	}

	@Override
	public int deleteDocumentFlowHandleUser(Long documentFlowHandleUserId) {
		return documentFlowHandleUserDao.deleteDocumentFlowHandleUser(documentFlowHandleUserId);
	}

	@Override
	public DocumentFlowHandleUserBO getDocumentFlowHandleUser(Long documentFlowHandleUserId) {
		return DocumentFlowHandleUserConverter.fromPO(documentFlowHandleUserDao.getDocumentFlowHandleUser(documentFlowHandleUserId));
	}

	@Override
	public List<DocumentFlowHandleUserBO> listDocumentFlowHandleUserById(Collection<Long> collection) {
		return DocumentFlowHandleUserConverter.fromPO(documentFlowHandleUserDao.listDocumentFlowHandleUserById(collection));
	}

	@Override
	public List<DocumentFlowHandleUserBO> listDocumentFlowHandleUser(DocumentFlowHandleUserQuery query) {
		return DocumentFlowHandleUserConverter.fromPO(documentFlowHandleUserDao.listDocumentFlowHandleUser(query));
	}

	@Override
	public int countDocumentFlowHandleUser(DocumentFlowHandleUserQuery query) {
		return documentFlowHandleUserDao.countDocumentFlowHandleUser(query);
	}

}
